package com.lwbldy.modules.student.service.impl;

import com.lwbldy.modules.student.domain.School;
import com.lwbldy.modules.student.mapper.SchoolDao;
import com.lwbldy.modules.student.service.SchoolService;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;

/**
 * 学校 service 实现
 * @author lwb
 * @email lwbldy@163.com
 * @date 2022-06-13 09:10:47
 */
@Service("schoolService")
public class SchoolServiceImpl implements SchoolService {

    @Autowired
    SchoolDao schoolDao;

    @Override
    public int save(School t) {
        return schoolDao.save(t);
    }

    @Override
    public int saveBatch(List<School> list) {
        return schoolDao.saveBatch(list);
    }

    @Override
    public int update(School t) {
        return schoolDao.update(t);
    }

    @Override
    public int delete(Object id) {
        return schoolDao.delete(id);
    }

    @Override
    public int deleteBatch(Object[] ids) {
        return schoolDao.deleteBatch(ids);
    }

    @Override
    public School queryObject(Object id) {
        return schoolDao.queryObject(id);
    }

    @Override
    public List<School> queryList(Map<String, Object> map) {
        return schoolDao.queryList(map);
    }

    @Override
    public int queryTotalByMap(Map<String, Object> map) {
        return schoolDao.queryTotalByMap(map);
    }

    @Override
    public int queryTotal() {
        return schoolDao.queryTotal();
    }

}
